Linux基础命令

您所在的位置:网站首页 linux ftp获取文件到指定目录 Linux基础命令

Linux基础命令

2024-07-10 02:59| 来源: 网络整理| 查看: 265

[root@localhost weijie]# lftp 192.168.1.8                  //登录ftp服务器

lftp 192.168.1.8:~> ls

drwxr-xr-x    2 0        0            4096 Aug 14 06:38 pub

lftp 192.168.1.8:/> cd pub/                                  //切换目录

lftp 192.168.1.8:/pub> ls                                    //查看文件

-rwxrwxrwx    1 0        0        2375494044 Aug 14 06:38 1.zip

-rw-r--r--    1 0       0               0 Aug 14 03:38 test.c

lftp 192.168.1.8:/pub> get test.c -o testtt.c            //获取文件,存储名字为testtt.c

lftp 192.168.1.8:/pub> quit                                  //退出

[root@localhost weijie]# ls                                  //查看内容,已经获取到文件。文件存储在当前目录

1   11.c  1.zip  2.c.bz2  4.c  6.c~  rec000012.c.bz2  testtt.c

1.  1.c   2.c    3.c      5.c  col   res.zip



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3